<?php
$this->breadcrumbs=array(
	//'Jump Order Home'=>array('/JumpOrder'),
	'Menu Builder'=>array('/JumpOrder/menuBuilder'),
	'Preview Order'
);
?>
<h1>Preview Order</h1>
<div class="rc_main">
<p><?php echo CHtml::link('Back to Menu Builder',array('index'))?></p>
<table>
	<thead>
		<tr>
			<th>No.</th>
			<th>Coffee Shop</th>
			<th>Coffee Type</th>
			<th>Size</th>
			<th>Milk</th>
			<th>Sugar</th>
			<th>Type</th>
			<th>Price inc GST</th>
			<th>Number to call</th>
		</tr>
	</thead>

	<?php
	$line=0;

	foreach( $orderLines as $orderLine){
		$line++;

		?>
	<tr>
		<td><?php 
		echo $line;
		?></td>
		<td><?php 
		echo 
//		CHtml::dropDownList('coffee_shopId',$orderLine->coffeeProduct?$orderLine->coffeeProduct->shop->id:0,
//		$availableCoffeeShops,
//		array('id'=>'coffee_shopId_'.$line)
//		);
$orderLine->coffeeProduct->shop->name;
		?></td>
		<td><?php 
		echo CoffeeProduct::coffee_types($orderLine->coffeeProduct->coffeeType);
		?></td>
		<td><?php
		echo CoffeeProduct::coffee_sizes($orderLine->coffeeProduct->size);
		?></td>
		<td><?php
		echo CoffeeProduct::coffee_milks($orderLine->coffeeProduct->milk);
		?></td>
		<td><?php 
		echo CoffeeProduct::coffee_sugar_nums($orderLine->sugarNum);
		?></td>
		<td><?php
		echo 
		CoffeeProduct::coffee_sugar_types($orderLine->sugarType)
		;
		?></td>
		<td>$<?php echo $orderLine->coffeeProduct->price/100;?>
		</td>
		<td><?php 
		$pos=Pos::getLineNumber($line);
		echo $pos; ?></td>
	</tr>

	<?php

	}
	?>

</table>
</div>

